package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallLeaseSubbackConfMapper;
import org.linlinjava.litemall.db.domain.AgedmallLeaseSubbackConf;
import org.linlinjava.litemall.db.domain.AgedmallLeaseSubbackConfExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AgedmallLeaseSubbackConfService {
    @Resource
    private AgedmallLeaseSubbackConfMapper agedmallLeaseSubbackConfMapper;

    public AgedmallLeaseSubbackConf findByStoreId(Integer storeId) {
        AgedmallLeaseSubbackConfExample example = new AgedmallLeaseSubbackConfExample();
        example.or().andDeletedEqualTo(false)
                .andStoreIdEqualTo(storeId);
        return agedmallLeaseSubbackConfMapper.selectOneByExampleWithBLOBs(example);
    }
}
